package org.rc.dto;

import lombok.Data;
import org.rc.entity.Shsp;

@Data
public class ShspPageRes {
    private Long id;
    private String name;
    private String rtsp;
    private String roomName;

    public static ShspPageRes getInstance(Shsp shsp){
        ShspPageRes shspPageRes = new ShspPageRes();
        shspPageRes.setId(shsp.getId());
        shspPageRes.setName(shsp.getName());
        shspPageRes.setRtsp(shsp.getRtsp());
        return shspPageRes;
    }
}
